package com.project.oj.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.oj.model.dto.question.QuestionQueryRequest;
import com.project.oj.model.entity.Question;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project.oj.model.vo.QuestionVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;


public interface QuestionService extends IService<Question> {


    void validQuestion(Question question, boolean add);


    QueryWrapper<Question> getQueryWrapper(QuestionQueryRequest questionQueryRequest);


    QuestionVO getQuestionVO(Question question, HttpServletRequest request);


    Page<QuestionVO> getQuestionVOPage(Page<Question> questionPage, HttpServletRequest request);

    List<Question> getAllQuestions();
}
